<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>网红添加页面</title>
  <link rel="stylesheet" href="../../../yl/index.css" />
  <!-- 布局样式 -->
  <link rel="stylesheet" href="../../../yl/style.css" />
  <link rel="stylesheet" href="../../../style/wangeditor.css">
  <link rel="stylesheet" href="../../../yl/mobile.css" />
  <link rel="stylesheet" href="../../../yl/easyui.css" />
  <link rel="stylesheet" href="../../../yl/icon.css" />
</head>

<body>
  <!-- <div id="app"> -->
  <div class="easyui-navpanel" id="app" v-cloak>
    <header>
      <div class="m-toolbar">
        <div class="m-title">{{action=='Add'?'添加信息':action=='Modify'?'修改信息':''}}</div>
      </div>
    </header>
    <div class="easyui-navpanel panel-body panel-body-nobottom panel-body-noborder" style="height: 3000px"
      id="MainTable" ref="MainTable"
      :data-options="JSON.stringify({ 'TableName': 'influencers', 'form': 'dataForm' ,'primary_key':'Influencers_SerialNumber' })">
      <div class="yl-main">
        <div class="table_titel">
          <div class="titel">网红信息</div>
        </div>
        <el-form :model="dataForm" ref="form" :inline-message="true" style="width: 100%">
          <el-descriptions :column="1" size="large" border>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">头像</div>
              </template>
              <el-form-item prop="Avatar_URL" :rules="[{ required: true, message: '请选择头像', trigger: 'change' }]">
                <yl-upload v-model="dataForm.Avatar_URL"></yl-upload>
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">网红昵称</div>
              </template>
              <el-form-item prop="Nick_Name" :rules="[{ required: true, message: '请输入网红昵称', trigger: 'blur' }]">
                <el-input v-model="dataForm.Nick_Name" class="borderless-input" placeholder="请输入网红昵称" />
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">真实人员</div>
              </template>
              <el-form-item prop="ID_Card_Number" :rules="[{ required: true, message: '选择真实人员', trigger: 'change' }]">
                <yl-select :disabled="action=='Add'&&nodeKey!=''" @change="changePersonal($event,dataForm)" v-model="dataForm.ID_Card_Number" clearable
                  filterable placeholder="请选择真实人员" :options="personal_information"
                  :props="{value:'ID_Card_Number',label:'Personal_Name'}">
                  <el-table-column prop="ID_Card_Number" width="180" show-overflow-tooltip
                    label="身份证号"></el-table-column>
                  <el-table-column prop="Personal_Name" show-overflow-tooltip label="姓名"></el-table-column>
                  <el-table-column prop="Birthday" show-overflow-tooltip label="出生日期"></el-table-column>
                  <el-table-column prop="Gender" label="性别"></el-table-column>
                  <el-table-column prop="Nation" label="民族"></el-table-column>
                  <el-table-column prop="Registered_Residence" show-overflow-tooltip label="籍贯"></el-table-column>
                  <el-table-column prop="Contact_Phone" label="联系方式"></el-table-column>
                </yl-select>
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">直播平台</div>
              </template>
              <el-form-item prop="Platform_SerialNumber"
                :rules="[{ required: true, message: '请选择直播平台', trigger: 'change' }]">
                <el-select v-model="dataForm.Platform_SerialNumber" placeholder="请选择直播平台" size="large">
                  <el-option v-for="(item,index) in platform" :key="index" :label="item.Platform"
                    :value="item.Platform_SerialNumber" />
                </el-select>
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">粉丝数量</div>
              </template>
              <el-form-item prop="Follower_Count" :rules="[{ required: true, message: '请输入粉丝数量', trigger: 'blur' }]">
                <el-input v-model="dataForm.Follower_Count" class="borderless-input" placeholder="请输入粉丝数量" />
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">直播地址</div>
              </template>
              <el-form-item prop="Address" :rules="[{ required: true, message: '请输入直播地址', trigger: 'blur' }]">
                <el-input v-model="dataForm.Address" class="borderless-input" placeholder="请输入直播地址" />
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">联系方式</div>
              </template>
              <el-form-item prop="Contact_Phone" :rules="[{ required: true, message: '请输入联系方式', trigger: 'blur' }]">
                <el-input v-model="dataForm.Contact_Phone" class="borderless-input" placeholder="请输入联系方式" />
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">绑定店铺</div>
              </template>
              <el-form-item>
                <yl-select v-model="value" clearable
                  filterable placeholder="可选择绑定店铺" :options="merchant"
                  :props="{value:'Merchant_SerialNumber',label:'Merchant_Name',multiple:true}">
                  <el-table-column prop="Merchant_SerialNumber" width="180" show-overflow-tooltip label="店铺流水号"></el-table-column>
                  <el-table-column prop="Business_License" width="180" show-overflow-tooltip label="营业执照"></el-table-column>
                  <el-table-column prop="Merchant_Name" show-overflow-tooltip label="店铺名称"></el-table-column>
                  <el-table-column label="图片" width="140">
                    <template v-slot="{row}">
                      <el-image style="width: 100px; height: 100px" :src="photo + row.Logo_URL" fit="contain"></el-image>
                    </template>
                  </el-table-column>
                  <el-table-column prop="Legal_Person" show-overflow-tooltip label="法人"></el-table-column>
                  <el-table-column prop="Merchant_Address" show-overflow-tooltip  label="地址信息"></el-table-column>
                  <el-table-column prop="Merchant_Description" show-overflow-tooltip  label="店铺简介"></el-table-column>
                  <el-table-column prop="Contact_Phone" label="联系方式"></el-table-column>
                </yl-select>
              </el-form-item>
            </el-descriptions-item>
          </el-descriptions>
        </el-form>
        <div id="ChildTable">
          <el-descriptions
            :data-options="JSON.stringify({ 'TableName': 'influencers_merchant', 'form': 'childDataForm', 'ParentTableName': 'influencers'})">
          </el-descriptions>
        </div>
      </div>
    </div>
    <footer class="botton-ann">
      <el-button @click="goBack">返回</el-button>
      <el-button type="primary" plain @click="handleSubmit" :loading="loading">提交</el-button>
    </footer>
  </div>
</body>
<script src="../../../utils/utils.js"></script>
<script src="../../../config/config.js"></script>
<script src="../../../utils/compressor.js"></script>
<script src="../../../utils/wangeditor.js"></script>
<script src="../../../utils/mixins.js"></script>
<script src="../../../yl/vue.js"></script>
<script src="../../../yl/index.js"></script>
<script src="../../../yl/zh-cn.mjs"></script>
<script src="../../../yl/index.iife.min.js"></script>
<script src="../../../yl/jquery.min.js"></script>
<script src="../../../utils/jquery.cookie.js"></script>
<script src="../../../yl/jquery.easyui.min.js"></script>
<script src="../../../yl/jquery.easyui.mobile.js"></script>
<script src="../../../yl/moment.min.js"></script>
<script src="../../../api/request.js"></script>
<script src="./js/add.js"></script>

</html>